package com.hk.patterntrains.factorypattern;

public abstract class Pizza {
    protected String name = null;
    protected String type = null;
    protected String city = null;


    protected void  bake(){
        System.out.println(toString()+" Baking");
    }

    protected  void  cut(){
        System.out.println(toString()+" Cutting");
    }

    protected  void box(){
        System.out.println(toString()+" Boxing");
    }

    @Override
    public String toString() {
        return "Pizza{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
